-- GENERATED SPELL FOR [Vengeful Harbinger] --


function spell0_21638(pUnit, Event) --@PetWait,Self--
pUnit:FullCastSpellOnTarget(36553,pUnit)
pUnit:RegisterEvent('Sorts_21638', 564, 1)
end

function Sorts_21638(pUnit, Event)
local choix_sorts_21638 = math.random(0, 0)
if choix_sorts_21638 == 0 then
pUnit:RegisterEvent('spell0_21638', 1, 1)
end
end

function mob21638_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21638', math.random(1500, 3000), 1)
end

function mob21638_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21638_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21638_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21638, 1, 'mob21638_Action')
RegisterUnitEvent(21638, 2, 'mob21638_Leave')
RegisterUnitEvent(21638, 3, 'mob21638_Kill')
RegisterUnitEvent(21638, 4, 'mob21638_Die')
